<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@taglib prefix="s" uri="strutsTags"%>
<%@taglib prefix="ty" uri="/wyzzTags"%>
<%@taglib prefix="jscalendar" uri="/jscalendar"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<head>
	<base href="<%=basePath%>">
	<link href="resource/css/style.css" rel="stylesheet" type="text/css" />
	<!-- DWR文件引用 -->
	<script type="text/javascript" src="dwr/interface/my.js"></script>
	<script type="text/javascript" src="dwr/interface/EmpAddUpdate.js"></script>
	<script type="text/javascript" src="resource/js/hrm/profile.js"></script>
	<title>新增员工基本资料</title>
</head>
<body onload="display_practice_yearOrMonth();">

	<div id="selectcontent" class="selectdiv"
		style="visibility: hidden; pixelHeight: 20px; z-index: 9;">
		<iframe id="selframe" frameborder="0" height="100%"></iframe>
		<div id="selecthtml" class="selectcontent">
			selectdate
		</div>
	</div>
	<!-- 可输入的select -->
	<script type="text/javascript" src="resource/js/edit_select.js"></script>
	<div id="create_emp" align="left">
		<s:component template="bodyhead">
			<s:param name="pagetitle" value="'新增员工基本资料'" />
		</s:component>
		<s:form name="createEmployee" action="/profile/empCreate.action"
			method="POST" enctype="multipart/form-data">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<s:textfield id="empNo" label="员工编号" name="emp.empDistinctNo"
						size="20" required="true" maxlength="32" tabindex="1"
						onkeyup="hrm.common.createAutoNoOnKeyUp(event,this,'autoCreateNo','Employee','empDistinctNo')" />
					<s:textfield label="邮箱地址" name="emp.empEmail" id="email" size="23"
						maxlength="64" tabindex="24"
						onkeyup="hrm.common.notChinese(event,this);"
						onblur="hrm.common.checkEmail(this);" />
					<td rowspan="7" colspan="2">
						<s:token />
						<img border="1" id="emp_showPicture"
							style="border: 1px darkslategray outset;" name="showPicture"
							src="resource/images/None.JPG" align="left" width="110"
							height="140" />
					</td>
				</tr>
				<%@ include file="employee_form.jsp"%>
				<tr>
					<s:textfield label="邮编" name="emp.empHomeZip" size="8"
						maxlength="6" tabindex="23"
						onkeyup="hrm.common.notChinese(event,this);"
						onblur="hrm.common.checkZip(this)" />
					<td colspan="2">
						<s:hidden name="emp.empLastChangeTime" />
					</td>
				</tr>
				<tr>
					<td colspan="6" class="prompt_div_bottom">
						<input class="button" type="submit" value="确定"
							refreshId="tabContent" tabindex="43"
							onclick="return confirmCreate();">
						<input class="button" type="reset" value="重置" tabindex="44">
						<ty:auth auths="911">
							<input class="checkbox" type="checkbox" id="createUser"
								tabindex="45" name="createUser" value="true">&nbsp;同时创建系统用户 
					</ty:auth>
					</td>
				</tr>
			</table>
		</s:form>
	</div>

	<div id="errorMsg"
		style="display: none; border: 1px solid #e00; background-color: #fee; padding: 2px; margin-top: 8px; width: 300px; font: normal 12px Arial; color: #900"></div>

	<!-- 自动计算编号显示的div -->
	<script type="text/javascript" src="dwr/interface/DwrForAutoNO.js"></script>
	<div id="autoCreateNo"
		style="position: absolute; z-index: 5; width: 146px; display: none; solid; text-align: left;"
		class="prompt_div_inline"></div>
	<!-- 自动计算编号 -->
	<script type="text/javascript">
	function confirmCreate() {
		if (document.getElementById('createUser').checked) {
			if (confirm("该员工的登录用户名和密码将发送到邮箱地址<"
					+ document.getElementById('email').value
					+ ">，请确认此邮箱地址配置正确！"))
				return true;
			else
				return false;
		}

		return true;
	}
</script>
	<jsp:include flush="true" page="position_choose_div.jsp"></jsp:include>
</body>
